<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <script src="./vue.global.js"></script>
  </head>
  <body>
    <div id="app">
      <h1>{{ message }}</h1>
      <button @click="clickMe">点我</button>
    </div>
    <script>
      const app = Vue.createApp({
        data() {
          return {
            message: "hello from vue",
          };
        },
        methods: {
          clickMe() {
            console.log("clicked!");
            this.message='update message'
          },
        },
      });

      app.mount("#app");
    </script>
  </body>
</html>
